import axios from '@/utils/request'

export const getCategoryAPI = () => {
  return axios.get('/my/cate/list')
}
export const addArtCateAPI = data => {
  return axios.post('/my/cate/add', data)
}
export const deleteCategoryAPI = id => {
  return axios.delete('/my/cate/del', { params: { id } })
}
export const alterCategoryAPI = data => {
  return axios.put('/my/cate/info', data)
}
export const addArticleAPI = data => {
  return axios.post('/my/article/add', data)
}
export const getArticleAPI = obj => {
  return axios.get('/my/article/list', { params: obj })
}
export const deleteArticleAPI = id => {
  return axios.delete('/my/article/info', { params: { id } })
}
export const getArtAPI = id => {
  return axios.get('/my/article/info', { params: { id } })
}
